class Sub {
    String fullName;
    int id;
    String img;
    bool market;
    String name;

    Sub({this.fullName, this.id, this.img, this.market, this.name});

    factory Sub.fromJson(Map<String, dynamic> json) {
        return Sub(
            fullName: json['fullName'], 
            id: json['id'], 
            img: json['img'], 
            market: json['market'], 
            name: json['name'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['fullName'] = this.fullName;
        data['id'] = this.id;
        data['img'] = this.img;
        data['market'] = this.market;
        data['name'] = this.name;
        return data;
    }
}